package com.sup.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.sup.model.User;

@Repository
public interface UserDao extends JpaRepository<User, Long> {
	
	@Query("select u from User u where u.userName=?1")
	public List<User> findByUsername(String username);
	
}
